﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace homework2.PlaneFigure
{
    internal class Square:PlaneFigure
    {
        private int arcLength;
        public Square(int arclength) { arcLength = arclength; }

        public override double getArea()
        {
            return arcLength*arcLength;
        }

        public override bool isLegal()
        {
            return arcLength > 0;
        }
    }
}
